<script>
	export default {
		globalData: {
			statusBarHeight: 0,
			screenHeight: 0,
			windowWidth: 750,
			windowHeight: 750,
			latitude:0,
			longitude:0,
			selectp:false,
			address:""
		},
		onLaunch: function() {

			uni.hideTabBar();
			uni.setStorage({
				key: 'userid',
				data: 1
			});
			uni.setStorage({
				key: 'user_type',
				data: 1
			});
			// #ifdef MP-WEIXIN
			uni.getSystemInfo({
				success: (res) => {
					this.globalData.statusBarHeight = res.statusBarHeight
					this.globalData.navBarHeight = 44 + res.statusBarHeight
				}
			})
			// #endif
			uni.getSystemInfo({
				success: (res) => {
					this.globalData.windowWidth = res.windowWidth
					this.globalData.windowHeight = res.windowHeight
				}
			})

		},
		onShow: function() {},
		onHide: function() {},

	}
</script>
<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "./uni_modules/uview-ui/index.scss";
	@import './uni_modules/uview-ui/libs/css/flex.scss';
	@import "common/demo.scss";

	page {
		color: $bgtxt;
	}
</style>
